package wsem.model;

public class Qrel {
	
	private int identifiant;
    private String nomDocument;
    private String xPath;
    private String idQrel;
    private int nbMot;
    private boolean pertinent;
    private double poids;

    /**
     * Constructeur
     * 
     * @param p_nomDocument
     * @param p_path
     */
    public Qrel(String pQrel,String p_nomDocument, String p_path, int pertinent) {
            this.nomDocument = p_nomDocument;
            this.xPath = p_path;
            this.idQrel = pQrel;
            this.pertinent = (pertinent == 1) ? true : false;
    }

    /**
     * Constructeur
     * 
     * @param identifiant
     * @param nomDocument
     * @param xPath
     * @param nbMot
     * @param pertinent
     */
    public Qrel(int identifiant, String nomDocument, String xPath,
                    int nbMot, int pertinent) {
            this.identifiant = identifiant;
            this.nomDocument = nomDocument;
            this.xPath = xPath;
            this.nbMot = nbMot;
            this.pertinent = (pertinent == 1) ? true : false;
    }

    /**
     * @return nomDocument
     */
    public String getNomDocument() {
            return nomDocument;
    }

    /**
     * @return xPath
     */
    public String getxPath() {
            return xPath;
    }

    /**
     * @return pertinent
     */
    public boolean isPertinent() {
            return pertinent;
    }

    /**
     * @return the identifiant
     */
    public int getIdentifiant() {
            return identifiant;
    }

    /**
     * @return the nbMot
     */
    public int getNbMot() {
            return nbMot;
    }

    /**
     * @return the poids
     */
    public double getPoids() {
            return poids;
    }

    /**
     * @param poids
     *            the poids to set
     */
    public void setPoids(double poids) {
            this.poids = poids;
    }

	public String getIdQrel() {
		return idQrel;
	}

	public void setIdQrel(String idQrel) {
		this.idQrel = idQrel;
	}


}
